﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Company.Web.Areas.Manage.Models.MessageModels.MessageItem>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	查看留言
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
    <fieldset>
        <legend>查看留言</legend>
        <%=Html.ActionLink(">>返回", "index")%>
        <%=Html.ActionLink("删除", "index", new { MsgID = Model.ID, Del = true }) %>
        <ul class="editpanel">
            <li class="edititem">
                <label for="Title" class="label">留言时间：</label>
                <div class="edititemcontent">
                    <%=string.Format("{0:yyyy-MM-dd HH:mm}",Model.AddTime) %>
                </div>
            </li>
            <li class="edititem">
                <label class="label">客户：</label>
                <div class="edititemcontent">
                    <%=Html.Encode(Model.Name) %>
                </div>
            </li>
            <li class="edititem">
                <label class="label">状态：</label>
                <div class="edititemcontent">
                    <%=Model.State.Name() %>
                </div>
            </li>
            <li class="edititem">
                <label class="label">语言：</label>
                <div class="edititemcontent">
                    <%=Model.Language.Name() %>
                </div>
            </li>
            <li class="edititem">
                <label for="Title" class="label">标题：</label>
                <div class="edititemcontent">
                    <%=Html.Encode(Model.Title) %>
                </div>
            </li>
            <li class="edititem">
                <label for="Title" class="label">内容：</label>
                <div class="edititemcontent">
                    <%=Html.Encode(Model.Content).Replace("\r\n","<br />") %>
                </div>
            </li>
        </ul>
    </fieldset>
</div>
</asp:Content>